<template>
  <div>
    <!-- 头部 -->
    <header class="header_wrapper">
      <div class="logo">
        <a href="">
          <img
            src="https://m.cntc.org.cn/upload/filemanage/phone/images/logo.png"
            alt="logo"
          />
        </a>
      </div>
      <div class="search">
        <input type="text" placeholder="请输入关键字搜索" />
      </div>
    </header>
    <!-- 导航栏 -->
    <van-tabs v-model="activeName">
      <van-tab title="首页" name="a">首页</van-tab>
      <van-tab title="关于我们" name="b">
        <van-tabs v-model="active">
          <van-tab title="标签 1">内容 1</van-tab>
          <van-tab title="标签 2">内容 2</van-tab>
          <van-tab title="标签 3">内容 3</van-tab>
          <van-tab title="标签 4">内容 4</van-tab>
        </van-tabs>
      </van-tab>
      <van-tab title="剧院动态" name="c">
        <van-tabs v-model="active">
          <van-tab title="文旅之声">内容</van-tab>
          <van-tab title="儿艺新闻">内容 2</van-tab>
          <van-tab title="儿艺公告">内容 3</van-tab>
          <van-tab title="建党">内容 4</van-tab>
          <van-tab title="文化交流">内容 4</van-tab>
          <van-tab title="视点">内容 4</van-tab>
          <van-tab title="在线留言">内容 4</van-tab>
        </van-tabs>
      </van-tab>
      <van-tab title="剧目频道" name="d">
        <van-tabs v-model="active">
          <van-tab title="标签 1">内容 1</van-tab>
          <van-tab title="标签 2">内容 2</van-tab>
          <van-tab title="标签 3">内容 3</van-tab>
          <van-tab title="标签 4">内容 4</van-tab>
        </van-tabs>
      </van-tab>
      <van-tab title="演出购票" name="e">
        <van-tabs v-model="active">
          <van-tab title="标签 1">内容 1</van-tab>
          <van-tab title="标签 2">内容 2</van-tab>
          <van-tab title="标签 3">内容 3</van-tab>
          <van-tab title="标签 4">内容 4</van-tab>
        </van-tabs>
      </van-tab>
      <van-tab title="演出购票" name="g">
        <van-tabs v-model="active">
          <van-tab title="标签 1">内容 1</van-tab>
          <van-tab title="标签 2">内容 2</van-tab>
          <van-tab title="标签 3">内容 3</van-tab>
          <van-tab title="标签 4">内容 4</van-tab>
        </van-tabs>
      </van-tab>
      <van-tab title="演出购票" name="h">
        <van-tabs v-model="active">
          <van-tab title="标签 1">内容 1</van-tab>
          <van-tab title="标签 2">内容 2</van-tab>
          <van-tab title="标签 3">内容 3</van-tab>
          <van-tab title="标签 4">内容 4</van-tab>
        </van-tabs>
      </van-tab>
      <van-tab title="演出购票" name="i">
        <van-tabs v-model="active">
          <van-tab title="标签 1">内容 1</van-tab>
          <van-tab title="标签 2">内容 2</van-tab>
          <van-tab title="标签 3">内容 3</van-tab>
          <van-tab title="标签 4">内容 4</van-tab>
        </van-tabs>
      </van-tab>
    </van-tabs>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 2,
      activeName: "a",
    };
  },
};
</script>

<style lang="scss" scoped>
* {
  border: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  color: #323332;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  background-color: white;
}
.header_wrapper {
  padding: 6px 12px;
  display: inline-flex;
  justify-content: space-around;

  .logo {
    width: 40%;

    img {
      height: auto;
      width: 100%;
    }
  }
  .search {
    width: 52%;
    height: 68%;
    // background-color: aquamarine;

    input {
      background: url(https://m.cntc.org.cn/upload/filemanage/phone/images/icon-search.png)
        no-repeat 4px 1px;
      background-size: 15px auto;
      width: 90%;
      height: 100%;
      border: none;
      background-color: aquamarine;
      border-radius: 50px 50px;
      padding-left: 22px;
      padding-right: 12px;
      outline: none;
    }
  }
}
</style>